package com.kwm.Mapper;

import com.kwm.entity.Emp;
import com.kwm.entity.EmpQueryParam;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmpMapper {

    Long count();
    List<Emp> list(EmpQueryParam param);
//    @Options(useGeneratedKeys = true,keyProperty = "id") //获取主键值并且赋值给属性id.
    void add(Emp emp);

    void delete(@Param("ids") List<Integer> ids);

    Emp getId(Integer id);

    void update(Emp emp);

    Emp selectUsernameAndPassword(Emp emp);
}
